package com.chase.chasecat.controller;

import com.chase.chasecat.common.R;
import com.chase.chasecat.entity.DictEntity;
import org.springframework.web.bind.annotation.*;
import com.chase.chasecat.service.DictService;
import javax.annotation.Resource;
import java.util.List;

/**
 * 字典管理
 * @author dreamer
 * @date 2023-11-08 21:54:56
 */
@RestController
@RequestMapping("chasecat/dict")
public class DictController {
    @Resource
    private DictService dictService;

    /**
     * 获取字典列表
     * @return
     */
    @GetMapping("getDictList")
    public R<List<DictEntity>> getDictList(){
        return dictService.getDictList();
    }
}
